<style lang="scss">
  .container{
    width: 600rpx;
    margin: 30% 75rpx;
  }
  .userinfo {
    display: flex;
    flex-direction: column;
    align-items: center;
  }

  .userinfo-avatar {
    width: 80rpx;
    height: 80rpx;
    border-radius: 50%;
  }

  .userinfo-nickname {
    color: #aaa;
  }

</style>
<template>
  <canvas class="myCanvas"  id="myCanvas" canvas-id="myCanvas"/>
  <van-toast id="van-toast" />
</template>

<script>
  import wepy from 'wepy'
  import Toast from '../../lib/vant/lib/toast/toast'


  export default class Func extends wepy.page {
    config = {
      navigationBarTitleText: '支付台',
      'usingComponents': {
        'van-button': '../../lib/vant/lib/button/index',
        'van-toast': '../../lib/vant/lib/toast/index'
      }
    }
    components = {

    }

    data = {

    }

    computed = {

    }

    methods = {



    }

    events = {

    }

    onLoad(options) {
      let self = this,
        channel=options.channel,id=options.id;

      switch (channel) {
        case 'town':
          break;
        default:
          wx.fail('类别错误');
          setTimeout(function () {
            wx.navigateBack();
          },500)
          break;
      }

    }
  }
</script>
